import java.io.*;
class BufferReaderTest {
	public static void main (String [] args){
		
		int i;
		
		try{
			FileReader in = new FileReader("test.txt");
			BufferedReader br = new BufferedReader(in);
			String line;
			String line2;
			StringBuffer sb = new StringBuffer();
			i = 0;
			while((line = br.readLine()) != null){
				i ++;
				line2 = i + ": " + line;
				System.out.println(line2);
			}
			br.close();
			in.close();
		}
		catch (IOException e){
			System.out.println(e);
		}
	}
}
